93e499
@@ -17,6 +17,7 @@
 package org.springframework.faces.webflow;
 
 import javax.faces.context.FacesContext;
+import javax.faces.context.FacesContextWrapper;
 
 import org.springframework.util.ClassUtils;
 import org.springframework.util.ReflectionUtils;
@@ -104,6 +105,9 @@
public class JsfRuntimeInformation {
 			if (facesContext == null) {
 				return false;
 			}
+			while (facesContext instanceof FacesContextWrapper) {
+				facesContext = ((FacesContextWrapper) facesContext).getWrapped();
+			}
 			myFacesInUse = facesContext.getClass().getPackage().getName().startsWith("org.apache.myfaces.");
 		}
 		return myFacesInUse;
